package cn.com.chengq.model;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class School {
    private String name;
    private int total;

    @Value("西安邮电大学")
    public void setName(String name) {
        this.name = name;
    }

    @Value("40000")
    public void setTotal(int total) {
        this.total = total;
    }


    @Override
    public String toString() {
        return "School{" +
                "name='" + name + '\'' +
                ", total=" + total +
                '}';
    }
}
